package com.alarm.ecp.pojo;

/**
 * 订单事件
 */
public class OrderEvent {
    public String orderId;
    public String eventType; // "create", "pay"
    public long timestamp;
    public double amount;

    public OrderEvent() {}

    public OrderEvent(String orderId, String eventType, long timestamp, double amount) {
        this.orderId = orderId;
        this.eventType = eventType;
        this.timestamp = timestamp;
        this.amount = amount;
    }

    @Override
    public String toString() {
        return "OrderEvent{" +
                "orderId='" + orderId + '\'' +
                ", eventType='" + eventType + '\'' +
                ", timestamp=" + timestamp +
                ", amount=" + amount +
                '}';
    }
}
